package com.xxl.job.executor.service.jobhandler;

import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

@Component
@XxlJob(value = "xxx",init = "init")
public class BeanXxlJob extends IJobHandler {

    @Override
    public void execute() throws Exception {
        System.out.println("this is bean job handler");
    }
}
